package org.example.managere.dto.feibiao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import jakarta.validation.constraints.NotEmpty;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 电机适用标准关联表数据传输对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AmArchivesRelationDto {
    private Integer relationId;
    
    @NotEmpty(message = "电机ID不能为空")
    private String motorId;
    
    @NotEmpty(message = "标准分类不能为空")
    private String standardType;
    
    @NotEmpty(message = "标准阈值不能为空")
    private String standardValue;
    
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date relationDate;
    
    private String remarks;
    
    // 添加额外字段以便前端显示
    private String motorType;
    private String manufacturer;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;
} 